package com.example.tdck.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 枚举类定义错误码
 */
@Getter
@AllArgsConstructor
public enum ResponseCode {
    SUCCESS(0,"成功"),
    MAJOR_NOT_EXIST(1,"专业不存在"),

    FAILED(40001,"失败"),
    VALIDATE_FAILED(40002, "参数校验失败"),
    DATABASE_FAILED(40003, "数据库错误"),
    SERVER_FAILED(40004, "服务器错误"),
    TARGET_NOT_EXIST(40006,"目标不存在"),



    ERROR(50000, "未知错误"),


    TOKEN_ERROR(30000,"token错误"),
    TOKEN_EXPIRED(30001,"token失效"),



    SOURCE_NOT_EXIST(50001,"the source to access do not exist");




    private int code;
    private String msg;
}
